package com.kiln.juxingqs.api.bean

import android.os.Parcelable
import kotlinx.android.parcel.Parcelize

data class GoodsDetail(
    val create_time: String,
    val goods_code: String,
    val goods_id: Int,
    val goods_img: String,
    val deal_num: String,
    val deal_num_total: String, //可用数量
    val freeze_num: String,
    val trade_price: String,//交易额
    val t_open: String,
    val y_open: String,
    val high: String,
    val low: String,

    val buy_sell_num: String,
    val buy_sell_price: String,
    val name: String,
    val price: String,
    val high_price: String,
    val low_price: String,
    val price_pf: String,//折扣价
    val s_discount_num: String,//优惠券

    val buy_start: Double,
    val buy_end: Double,
    val sell_start: Double,
    val sell_end: Double,
    val priority: Int,
    var collect: Int,
    val status: Int,
    val stock_c: String,//总数量
    val f_price: String,//服务中心价格
    val g_price: String,//供应商价格
    val user_status: Int,//默认普通用户 1.摘牌服务中心 2.摘牌供应商

    val sales: String,//交易量
    val total_price: String,//总价值
    val pp_price: String,//商品价值
    val take_num: String,//提货商品 商品1数量
    val borrow_num: String,//资产一，预支票
    val r_borrow_num: String,//资产一，可预支数量
    val release_num: String,//资产二，商品2 数量
    val sell_num: String,//可卖数量
    val s_num: String,//总数量
    val s_coupon_num: String?,//特价券数量
    val f_surplus_num: String,//服务中心量
    val g_surplus_num: String,//供货商量
    val price_float: String,//商品幅度
    val profit: String,//盈亏
    val is_dj_show: Int,//冻结点对点 是否显示
    val transfer_status: Int,//划转 transfer_status==0正常 1显示划转,提货变灰

    val sell_list: List<Sell>,
    val buy_list: List<Buy>,
    val detail_list: List<Detail>,
    val banner_list: List<Banner>,
    val f_hanging_order_list: List<FHangingOrder>,
    val g_hanging_order_list: List<GHangingOrder>
)
{

    @Parcelize
    data class Banner(
        val create_time: String,
        val goods_id: Int,
        val goods_img: String,
        val priority: Int
    ): Parcelable

    @Parcelize
    data class Buy(
        val num: String,
        val price: String,
        val surplus_num: String,
    ): Parcelable

    @Parcelize
    data class Detail(
        val create_time: String,
        val goods_id: Int,
        val goods_img: String,
        val priority: Int
    ): Parcelable

    @Parcelize
    data class Sell(
        val num: String,
        val surplus_num: String,
        val price: String
    ): Parcelable

    @Parcelize
    data class FHangingOrder(
        val surplus_num: String
    ): Parcelable

    @Parcelize
    data class GHangingOrder(
        val surplus_num: String
    ): Parcelable

}